package com.example.questionnaire;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

import java.net.InetAddress;
import java.net.UnknownHostException;

@SpringBootApplication
@Slf4j
public class QuestionnaireApplication {

    public static void main(String[] args) throws UnknownHostException {
        log.info("应用启动开始");
        ConfigurableApplicationContext application = SpringApplication.run(QuestionnaireApplication.class, args);
        Environment env = application.getEnvironment();

    }

}
